import java.util.HashSet;
import java.util.Set;

public class Test {
    public static void main(String[] args) {

        Exercises test=new Exercises();
        //测试数据集

//        int left[]={0,10,50,80,100,1000,12};
//        int right[]={5,15,45,30,100,12};

/*     //测试范围代码
       for (int i=0;i<left.length;i++)
        {
            System.out.printf("%d:",i+1);
            Equation ad=test.generateAdditionEquation(left[i],right[i],0,100);
            if(ad!=null) {
                System.out.println("加法没问题");
                test.equations.add(ad);
            }
            Equation sub=test.generateSubtractionEquation(left[i],right[i],0,100);

            if(sub!=null) {
                System.out.println("减法没问题");
                test.equations.add(sub);
            }
        }

 */
        //）修改程序，要求尽可能整齐打印输出，每行6列算式。测试数据：习题中算式的数量分别是5，6,7,23,24,25,59,60,61,119,120。

        test.testEquationNumberForPrint(0,100,5);
        test.testEquationNumberForPrint(0,100,6);
        test.testEquationNumberForPrint(0,100,7);
        test.testEquationNumberForPrint(0,100,23);
        test.testEquationNumberForPrint(0,100,24);
        test.testEquationNumberForPrint(0,100,25);
        test.testEquationNumberForPrint(0,100,59);
        test.testEquationNumberForPrint(0,100,60);
        test.testEquationNumberForPrint(0,100,61);
        test.testEquationNumberForPrint(0,100,119);
        test.testEquationNumberForPrint(0,100,120);



    }
}
